package org.jvending.provisioning.stocking.par.impl;

public class VendorInfoTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {
  public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();
    return _1;
  }

  public java.lang.String getPreferredPrefix(java.lang.String pURI) {
    if (pURI == null) {
      pURI = "";
    }
    if (pURI.equals("http://java.sun.com/xml/ns/j2ee-cp")) {
      return "j2ee-cp";
    }
    return null;
  }

  public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.jvending.provisioning.stocking.par.VendorInfoType _1 = (org.jvending.provisioning.stocking.par.VendorInfoType) pObject;
    org.jvending.provisioning.stocking.par.VendorNameType _2 = _1.getVendorName();
    if (_2 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _3 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.VendorName.class).getDriver();
      pController.marshal(_3, "http://java.sun.com/xml/ns/j2ee-cp", "vendor-name", _1.getVendorName());
    }
    org.jvending.provisioning.stocking.par.VendorUrlType _4 = _1.getVendorUrl();
    if (_4 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _5 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.VendorUrl.class).getDriver();
      pController.marshal(_5, "http://java.sun.com/xml/ns/j2ee-cp", "vendor-url", _1.getVendorUrl());
    }
    org.jvending.provisioning.stocking.par.VendorDescriptionType _6 = _1.getVendorDescription();
    if (_6 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _7 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.VendorDescription.class).getDriver();
      pController.marshal(_7, "http://java.sun.com/xml/ns/j2ee-cp", "vendor-description", _1.getVendorDescription());
    }
  }

}
